<?php /* Smarty version Smarty-3.1.11, created on 2013-09-12 20:46:54
         compiled from "..\templates\tuyensinh\thongke.tpl" */ ?>
<?php /*%%SmartyHeaderCode:28815216b8acb963c0-46413854%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '20e783f33f8833f5b776a68822e4d85006759e51' => 
    array (
      0 => '..\\templates\\tuyensinh\\thongke.tpl',
      1 => 1378992838,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '28815216b8acb963c0-46413854',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5216b8acd8ba30_19872120',
  'variables' => 
  array (
    'tongsotrungtuyen' => 0,
    'tongsodangky' => 0,
    'tongsonhaphoc' => 0,
    'ma_pq' => 0,
    'tongsothutien' => 0,
    'tongsotien' => 0,
    'dsnganh' => 0,
    'i' => 0,
    'nganh' => 0,
    'kq_tong' => 0,
    'tong' => 0,
    'kq_dk' => 0,
    'dk' => 0,
    'kq_nhaphoc' => 0,
    'nhaphoc' => 0,
    'kq_duyet' => 0,
    'duyet' => 0,
    'kq_tien' => 0,
    'tien' => 0,
    'ten_cb' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5216b8acd8ba30_19872120')) {function content_5216b8acd8ba30_19872120($_smarty_tpl) {?><script>
$(function() {
    $("#ngaybd").datepicker();
  });
$(function() {
    $("#ngaykt").datepicker();
  });
function xuatbc(){
         cntt=document.getElementById("Công nghệ thông tin");   
         dttt=document.getElementById("CN kỹ thuật ĐT, TT");
         ktruc=document.getElementById("Kiến trúc");
         cnsh=document.getElementById("Công nghệ sinh học");
         ktoan=document.getElementById("Kế toán");
         qtkd=document.getElementById("Quản trị kinh doanh");
         qtdl=document.getElementById("QTKD (QT du lịch, khách sạn)");
         hddl=document.getElementById("QTKD (Hướng dẫn du lịch)");
         tcnh=document.getElementById("Tài chính - Ngân hàng");
         htttkt=document.getElementById("Hệ thống thông tin kinh tế");
         lkt=document.getElementById("Luật kinh tế");
         lqt=document.getElementById("Luật quốc tế");
         nthat=document.getElementById("Thiết kế công nghiệp (Nội thất)");
         ttrang=document.getElementById("Thiết kế công nghiệp (Thời trang)");
         dhoa=document.getElementById("Thiết kế công nghiệp (Đồ họa)");
         nanh=document.getElementById("Ngôn ngữ Anh");
         ntquoc=document.getElementById("Ngôn ngữ Trung Quốc");
         
         url="tuyensinh/baocao_4.php?tim";
         nganh=0;
         if(cntt.checked)   {
            url=url+"&cntt";
            nganh='1';     
            }                            
         if(dttt.checked)   {
            url=url+"&dttt";
            nganh='1';     
            }    
         if(ktruc.checked)  {
            url=url+"&ktruc"; 
            nganh='1';   
            }    
         if(cnsh.checked)   {
            url=url+"&cnsh"; 
            nganh='1';    
            } 
         if(ktoan.checked)  {
            url=url+"&ktoan";
            nganh='1';    
            }
         if(qtkd.checked)   {
            url=url+"&qtkd";
            nganh='1';     
            } 
         if(qtdl.checked)   {
            url=url+"&qtdl";
            nganh='1';     
            } 
         if(hddl.checked)   {
            url=url+"&hddl";
            nganh='1';     
            } 
         if(tcnh.checked)   {
            url=url+"&tcnh";
            nganh='1';     
            } 
         if(htttkt.checked) {
            url=url+"&htttkt";
            nganh='1';   
            } 
         if(lkt.checked)    {
            url=url+"&lkt";
            nganh='1';      
            }
         if(lqt.checked)    {
            url=url+"&lqt";
            nganh='1';      
            }
         if(nthat.checked)  {
            url=url+"&nthat";
            nganh='1';    
            }
         if(ttrang.checked) {
            url=url+"&ttrang";
            nganh='1';   
            }
         if(dhoa.checked)   {
            url=url+"&dhoa";
            nganh='1';     
            }
         if(nanh.checked)   {
            url=url+"&nanh"; 
            nganh='1';    
            }
         if(ntquoc.checked) {
            url=url+"&ntquoc";
            nganh='1';   
            }
        url=url+"&nganh="+nganh; 
     hp=document.getElementById("chk_hp");
     yt=document.getElementById("chk_bhyt");
     sk=document.getElementById("chk_sk");
     tv=document.getElementById("chk_tv");
     tt1=document.getElementById("chk_tt1");
     tt2=document.getElementById("chk_tt2");
     if(hp.checked) {
        url=url+"&hp";   
        }
     if(yt.checked) {
        url=url+"&yt";   
        }
     if(sk.checked) {
        url=url+"&sk";   
        }
     if(tv.checked) {
        url=url+"&tv";   
        }
     if(tt1.checked) {
        url=url+"&tt1";   
        }
     if(tt2.checked) {
        url=url+"&tt2";   
        }
     all=document.getElementById("all");
     toi=document.getElementById("toi");
     if(all.checked) {
        url=url+"&all";   
        }
     if(toi.checked) {
        url=url+"&toi="+toi.value;   
        }
        
      cangay=document.getElementById("cangay");
      sang=document.getElementById("sang");
      chieu=document.getElementById("chieu");
      ngaybd=document.getElementById("ngaybd");
      toanbo=document.getElementById("toanbo");
      
       if(cangay.checked) {
        url=url+"&cangay";   
        }
       if(sang.checked) {
        url=url+"&sang=";   
        }
       if(chieu.checked) {
        url=url+"&chieu=";   
        }
       if(toanbo.checked) {
        url=url+"&toanbo=";   
        }
      url=url+"&ngaybd="+ngaybd.value;
      
      baocao=document.getElementById("baocao");
      baocao.href=url;
    }
</script>

<div class="content-box"><!-- Start Content Box -->
	<div class="content-box-header">
		<h3>Thống kê nhập học</h3>
	</div> <!-- End .content-box-header -->	
	<div class="content-box-content">
<!----------------------------------------------------------------- NỘI DUNG TRANG------------------------------------------------------------------------>
        			
        <form action="" method="POST" id="formnoidung" name="dulieu" enctype="multipart/form-data" onsubmit="return ktnhap_cb()">
        <table style="margin: 0 auto">
            <tr><td class="cangiua" colspan="9"><h3>Thống kê nhập học</h3></td></tr>
            <tr>
                <td><label>STT</label></td>
                <td><label>Ngành</label></td>
                <td><label>Tổng số</label></td>
                <td><label>SL đăng ký</label></td>
                <td><label>SL nhập học</label></td>
                <td><label>SL đã nộp tiền</label></td>
                <td class="cangiua"><label>Tổng tiền</label></td>                
            </tr>
            <tr>
                <td colspan="2" class="cangiua"><label>TỔNG</label></td>
                <td class="cangiua"><label><?php echo $_smarty_tpl->tpl_vars['tongsotrungtuyen']->value;?>
</label></td>
                <td class="cangiua"><label><?php echo $_smarty_tpl->tpl_vars['tongsodangky']->value;?>
</label></td>
                <td class="cangiua"><label><?php echo $_smarty_tpl->tpl_vars['tongsonhaphoc']->value;?>
 <img src="images/Download.png" title="Tải DS này" onclick="window.location.href='tuyensinh/xuatds_dadangky.php'" /></label></td>
<?php if ($_smarty_tpl->tpl_vars['ma_pq']->value!='trungtam'){?>
                <td class="cangiua"><label><?php echo $_smarty_tpl->tpl_vars['tongsothutien']->value;?>
 <img src="images/Download.png" title="Tải DS này" onclick="window.location.href='tuyensinh/xuatds_daduyet.php'" /></label></td>
                <td class="canphai"><label><?php echo $_smarty_tpl->tpl_vars['tongsotien']->value;?>
 đồng</label></td>
<?php }?>                
            </tr>
            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
            <?php  $_smarty_tpl->tpl_vars['nganh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nganh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dsnganh']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nganh']->key => $_smarty_tpl->tpl_vars['nganh']->value){
$_smarty_tpl->tpl_vars['nganh']->_loop = true;
?>
                <tr>
                    <td class="cangiua"><?php echo $_smarty_tpl->tpl_vars['i']->value++;?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
</td>
                    
                    <td class="cangiua">
                    <?php  $_smarty_tpl->tpl_vars['tong'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tong']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['kq_tong']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tong']->key => $_smarty_tpl->tpl_vars['tong']->value){
$_smarty_tpl->tpl_vars['tong']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['tong']->value['nganh_ts']==$_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']){?>
                            <?php echo $_smarty_tpl->tpl_vars['tong']->value['tong'];?>
<?php break 1?>
                        <?php }?>
                        
                        <?php if ($_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']=="Thiết kế công nghiệp (Nội thất)"&&$_smarty_tpl->tpl_vars['tong']->value['nganh_ts']=="Thiết kế công nghiệp"){?>
                            <?php echo $_smarty_tpl->tpl_vars['tong']->value['tong'];?>
<?php break 1?>
                        <?php }?>
                    <?php } ?>
                    </td>
                    
                    <td class="cangiua">
                    <?php  $_smarty_tpl->tpl_vars['dk'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['dk']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['kq_dk']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['dk']->key => $_smarty_tpl->tpl_vars['dk']->value){
$_smarty_tpl->tpl_vars['dk']->_loop = true;
?>                    
                        <?php if ($_smarty_tpl->tpl_vars['dk']->value['nganh_tt']==$_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']){?>
                            <a href="index.php?muc=tuyensinh&modul=chitiet_tk_nh&nganh=<?php echo $_smarty_tpl->tpl_vars['dk']->value['nganh_tt'];?>
&kieu=0" target="_blank"><?php echo $_smarty_tpl->tpl_vars['dk']->value['tong'];?>
</a>                            
                        <?php break 1?>
                        <?php }?>
                    <?php } ?>
                    </td>
                    
                    <td class="cangiua">
                    <?php  $_smarty_tpl->tpl_vars['nhaphoc'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nhaphoc']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['kq_nhaphoc']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nhaphoc']->key => $_smarty_tpl->tpl_vars['nhaphoc']->value){
$_smarty_tpl->tpl_vars['nhaphoc']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['nhaphoc']->value['nganh_tt']==$_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']){?>
                            <a href="index.php?muc=tuyensinh&modul=chitiet_tk_nh&nganh=<?php echo $_smarty_tpl->tpl_vars['nhaphoc']->value['nganh_tt'];?>
&kieu=1" target="_blank"><?php echo $_smarty_tpl->tpl_vars['nhaphoc']->value['tong'];?>
</a>
                        <?php break 1?>
                        <?php }?>
                    <?php } ?>
                    </td>
<?php if ($_smarty_tpl->tpl_vars['ma_pq']->value!='trungtam'){?>                             
                    <td class="cangiua">
                    <?php  $_smarty_tpl->tpl_vars['duyet'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['duyet']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['kq_duyet']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['duyet']->key => $_smarty_tpl->tpl_vars['duyet']->value){
$_smarty_tpl->tpl_vars['duyet']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['duyet']->value['nganh_tt']==$_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']){?>
                            <a href="index.php?muc=tuyensinh&modul=chitiet_thongke&nganh=<?php echo $_smarty_tpl->tpl_vars['duyet']->value['nganh_tt'];?>
&kieu=2" target="_blank"><?php echo $_smarty_tpl->tpl_vars['duyet']->value['tong'];?>
</a>
                        <?php break 1?>
                        <?php }?>
                    <?php } ?>
                    </td>
           
                    <td class="canphai">
                    <?php  $_smarty_tpl->tpl_vars['tien'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['tien']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['kq_tien']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['tien']->key => $_smarty_tpl->tpl_vars['tien']->value){
$_smarty_tpl->tpl_vars['tien']->_loop = true;
?>
                        <?php if ($_smarty_tpl->tpl_vars['tien']->value['nganh_tt']==$_smarty_tpl->tpl_vars['nganh']->value['ten_nganh']){?>
                            <b><?php echo $_smarty_tpl->tpl_vars['tien']->value['tong'];?>
 đồng</b>
                        <?php break 1?>
                        <?php }?>
                    <?php } ?>
                    </td>
                </tr>
<?php }?>                
            <?php } ?>
        </table>
        <br />
        <table style="margin: 0 auto">
            <tr class="linebottom">
                <td colspan="2" class="cangiua"><b>BÁO CÁO TÌNH HÌNH THU TÀI CHÍNH </b></td>
            </tr>
            <tr class="linebottom">
                <td>
                <div id="dsmon" style="height: 200px; width: 250px; overflow:auto" >
                    <?php  $_smarty_tpl->tpl_vars['nganh'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['nganh']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dsnganh']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['nganh']->key => $_smarty_tpl->tpl_vars['nganh']->value){
$_smarty_tpl->tpl_vars['nganh']->_loop = true;
?>
                    <input type="checkbox" name="nganh[]" value="<?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
" id="<?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
" /><?php echo $_smarty_tpl->tpl_vars['nganh']->value['ten_nganh'];?>
<br />                                 
                    <?php } ?>
                </div>
                </td>
                <td>
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_hp"/>Học phí tạm thu HK1 năm 2013<br />
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_bhyt"/>Bảo hiểm y tế<br />
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_sk"/>Khám sức khỏe<br />
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_tv"/>Thẻ thư viện<br />
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_tt1"/>Bảo hiểm thân thể 4 năm<br />
                    <input type="checkbox" name="noidung[]" value="hp" id="chk_tt2"/>Bảo hiểm thân thể 5 năm<br />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="radio" name="thoigian_bc[]" value="toanbo" id="toanbo"/>Toàn bộ
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <b>Thời gian:</b> 
                    <input type="radio" name="thoigian_bc[]" value="cangay" checked="" id="cangay"/>Cả ngày
                    <input type="radio" name="thoigian_bc[]" value="sang" id="sang"/>Sáng
                    <input type="radio" name="thoigian_bc[]" value="chieu" id="chieu"/>Chiều
                    <input type="text" class="medium-input" id="ngaybd" value="<?php echo date('d/m/Y');?>
"/>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="radio" name="nguoiin[]" value="all" checked="" id="all"/>Tất cả
                    <input type="radio" name="nguoiin[]" value="<?php echo $_smarty_tpl->tpl_vars['ten_cb']->value;?>
" id="toi"/>Mình tôi
                    <a href="" id="baocao"><input type="button" class="button" value="Xuất danh sách" onmousemove="xuatbc();"/></a>
                </td>
            </tr>
        </table>
<!-----------------------------------------------------------KẾT THÚC NỘI DUNG TRANG------------------------------------------------------------------------>
</div> <!-- End .content-box-content -->
</div> <!-- End .content-box --><?php }} ?>